/*******************************************************************************
 ** Name: character.cpp                                                       **
 ** Description:                                                              **
 **                                                                           **
 ** Open Source Initiative (OSI) Approved 2-clause BSD License                **
 **                                                                           **
 **  Copyright (c) 2009-2010 Barry "Gian" James  <bjames@munixos.net>         **
 **  All rights reserved.                                                     **
 **                                                                           **
 **  Redistribution and use in source and binary forms, with or without       **
 **  modification, are permitted provided that the following conditions are   **
 **  met:                                                                     **
 **                                                                           **
 **  * Redistributions of source code must retain the above copyright notice, **
 **    this list of conditions and the following disclaimer.                  **
 **  * Redistributions in binary form must reproduce the above copyright      **
 **    notice, this list of conditions and the following disclaimer in the    **
 **    documentation and/or other materials provided with the distribution.   **
 **                                                                           **
 **  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS      **
 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED **
 ** TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A           **
 ** PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT        **
 ** HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,    **
 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED  **
 ** TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR    **
 ** PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF    **
 ** LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING      **
 ** NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS        **
 ** SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.              **
 **                                                                           **
 ******************************************************************************/
// Modified $Date: 2011-10-22 02:09:07 +0000 (Sat, 22 Oct 2011) $ by $Author: gian.james $
#define _character_cpp_ID    "$Id: character.cpp 146 2011-10-22 02:09:07Z gian.james $"

#include "character.hpp"

const char  *    GenderStr[] = { "male", "female", "androgenous" };


////////////////////////////////[ Character
int
Character::accept(Pattern::Visitor * v)
{

	return 0;
}

void
Character::UpdateStats()
{
	// TODO
}

int
Character::Actionable()
{	// TODO
	return 0;
}



Character::Character(std::string n)
        : WorldObject(OType::Character,n)
{
	Character();
}

Character::Character()
        : WorldObject(OType::Character,"")
{
    xp = 0; rep = 0; wealth = 1000;
    cond = condition::normal;
    fxsensitive = false;
    lvl = 1;
    str = dex = con = inte = wis = cha = DEFAULT_STAT;
    str_temp = dex_temp = con_temp = inte_temp = wis_temp = cha_temp = 0;
    str_bonus = dex_bonus = con_bonus = inte_bonus = wis_bonus = cha_bonus = -1;
    def = avd = init = 0;
    def_temp = avd_temp = init_temp = speed_temp = 0;
    speed = 30;
    fort = will = reflex = recovery = 0;
    wanted = pkills = deaths = 0;
    consider = 0.0;
    gender = GenderType::Male;
    encumbranceCurr = encumbrancePct = encumbranceMax = 0;
    favor = 0; cflags = 0; loc = 0;
    rank = 0;
}

Character::Character(const Character& orig)
{	// TODO
}

Character::~Character()
{
}

